<?php  
namespace app\index\controller;
use think\Controller;
use think\Request;
class Base extends Controller{
	public function __construct(){
		parent::__construct();
		$ind=db('industry')->where('type','0')->select();
		$this->assign('ind',$ind);
		$news=db('news')->where('type','0')->select();
		$this->assign('news',$news);
		$request=Request::instance();
		$this->assign('action',$request->action());
		$banner=db('aboutus')->where('type=0')->find();
		$this->assign('banner',$banner);
		// $classify=db('news')->where('type=0')->select();
		// $this->assign('classify',$classify);
		// $user=db('user')->where('state','1')->find();
		// if($user){
  //           $this->assign('user',$user);
  //       }else{
  //           $this->assign('user','');
  //       }
        // if(isset($_GET['user_exit'])){
        // 	db('user')->where('username',$_GET['user_exit'])->update(['state'=>'0']);
        // 	session('username','');
        // }
	}
}
?>